import request from '@/utils/request'
// 桩点管理
// 订单列表
export function query(data,isLoading=true) {
  return request({
    url: '/system/charging/pile/query',
    method: 'post',
    params: data,
		loading: isLoading
  })
}

// 添加编辑回填
export function add_edit(data,isLoading=true) {
  return request({
    url: '/system/charging/pile/add_edit',
    method: 'post',
    params: data,
		loading: isLoading
  })
}

// 获取站点
export function getSite(data,isLoading=true) {
  return request({
    url: '/system/charging/pile/add_edit',
    method: 'post',
    params: data,
		loading: isLoading
  })
}

// 桩点管理-添加修改保存接口
export function save(data,isLoading=true) {
  return request({
    url: '/system/charging/pile/save',
    method: 'post',
    params: data,
		loading: isLoading
  })
}

// 桩点管理-设置功率
export function setPower(data,isLoading=true) {
  return request({
    url: '/system/charging/pile/setPower',
    method: 'post',
    params: data,
		loading: isLoading
  })
}





